package de.wojenko.sps;

import java.io.File;

import de.wojenko.sps.TaskServiceProvider;

public class XmlFileTaskServiceProvider implements TaskServiceProvider {

	private static final File USER_HOME = new File(System.getProperty("user.home"));

	@Override
	public TaskService getService(BacklogItem backlogItem) {
		File sprintTaskDefinitionLocation = new File(USER_HOME, "Sprints/Sprint" + backlogItem.getSprintNumber());  
		return new XmlFileTaskService(sprintTaskDefinitionLocation, backlogItem);
	}
}
